type MyPick<T, K extends keyof T> = {
    [P in K]: T[P]
}

interface subject {
    title: string,
    description: string,
    completed: boolean
}
type subjectPreview = Pick<subject, "title" | "completed">
/* type subjectPreview = {
    title: string;
    completed: boolean;
} */
const mySubject: subjectPreview = {
    title: 'chinese',
    completed: false,
}